/***********************************************************
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License
 **********************************************************/
@import "themes";
@import "variables";

@mixin default-button {
    margin-top: 3px;
    padding-top: 0px;
    @include themify($themes) {
        color: themed("buttonColor");
    }
    padding: 0;
}

@mixin validation-error {
    @include themify($themes) {
        color: themed("errorText");
    }
    padding-top: 10px;
    font-size: 14px;
}

.pnp-detail-list {
    margin-left: 15px;
    @include themify($themes) {
        background-color: themed("backgroundColor");
    }
    .list-header {
        font-weight: bold;
        border-bottom: 1px solid;
        @include themify($themes) {
            border-bottom-color: themed("borderColor");
        }
        padding-bottom: 5px;
        .column-toggle {
            @include default-button;
            top: -5px;
        }
        .reported-value {
            margin-top: -8px;
        }
        .collapse-button {
            margin-top: -5px;
        }
    }

    .list-header-uncollapsible {
        padding-bottom: 13px;
    }
}

.flex-grid-row {
    display: flex;
    justify-content: space-between;
    .col-sm4 {
        width: 33.33333333333333%;
        padding: 5px;
    }
    .col-sm3 {
        width: 25%;
        padding: 5px;
    }
    .col-sm2 {
        width: 16.666666666666664%;
        padding: 5px;
    }
    .col-sm2 {
        width: 8.333333333333332%;
        padding: 5px;
    }
}

.list-content {
    width: calc(100% - 2px);
    .list-item {
        .column-value-text {
            .column-value-button {
                @include default-button;
            }
            .value-validation-error {
                @include validation-error;
            }
        }
        .item-summary {
            overflow: auto;
            width: 100%;
            border-bottom: 1px solid;
            @include themify($themes) {
                border-bottom-color: themed("borderColor");
            }
            .column-toggle {
                padding-right: 2%;
                float: right;
                margin-top: 5px;
                padding-left: 20%;
            }
        }

        .item-summary-uncollapsed {
            @include themify($themes) {
                background-color: themed("summaryBackground");
            }
            border-bottom: none;
        }

        .item-summary-partial {
            border-bottom: none;
        }

        .item-detail {
            @include themify($themes) {
                border-bottom-color: 1px solid themed("itemDetailBottomBorderColor");
            }
            width: 100%;
            float: left;
        }

        .item-detail-uncollapsed {
            box-sizing: border-box;
            padding: 0 10px 10px 5px;
            @include themify($themes) {
                background-color: themed("summaryBackground");
            }
            border-bottom: 1px solid;
            @include themify($themes) {
                border-bottom-color: themed("borderColor");
            }

            .value-section {
                padding-top: 20px;
            }

            .submit-button {
                margin-top: 10px;
            }
        }
    }

    .event-list-item {
        margin-left: 15px;
    }
}

.pnp-properties {
    dialog {
        @include themify($themes) {
            background-color: themed("backgroundColor");
            box-shadow: 0px 0px 50px themed("boxShadowColor");
        }
        width: 50%;
        position: fixed;
        top: 0;
        padding: 15px;
        height: calc(100% - #{$mastheadHeight});
        left: calc(50% - 30px);
        border: none;
        overflow: auto;
        margin-top: $mastheadHeight;
        z-index: 1;

        .panel-title {
            margin-bottom: 40px;
            padding-bottom: 20px;
            h1 {
                padding-top: 10px;
                margin: 0px;
                font-size: 18px;
                @include themify($themes) {
                    color: themed("textColor");
                }
            }
        }
    }
    .close-dialog-icon {
        float: right;
    }
}

.ms-Panel-main {
    margin-top: 45px;
}

@media screen and (min-width: $screenSize) {
    .scrollable-lg {
        height: calc(100vh - 245px);
        overflow-y: auto;
    }
}
